home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q32781 < prev    next >
Text File  |  1988-07-21  |  906b  |  38 lines

  1. Q32781 Pascal Functions Returning Double Generate Warning C4058
  2. C Compiler
  3. 5.10   | 5.10
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.    When compiling a program with one of the DS!=SS options (/Aw or
  8. /Au), calls to Pascal functions returning doubles will generate the
  9. warning C4058: "address of frame variable taken, DS!=SS." The warning
  10. should not be generated in this circumstance and can be ignored.
  11.    Microsoft has confirmed this to be a problem in Version 5.10. We
  12. are researching this problem and will post new information as it
  13. becomes available.
  14.  
  15. More Information:
  16.    Compile with the following:
  17.  
  18.    CL /c /Alfw /W3 file.c
  19.  
  20.    The following code demonstrates this problem:
  21.  
  22. #include<mt\stdio.h>
  23. #include<mt\math.h>
  24.  
  25. void get_float_value (float *fl)
  26.   {
  27. char tmp[50];
  28. double x;
  29.  
  30.  
  31.   gets (tmp);
  32.   x = atof(tmp);
  33.   *fl = (float)x;
  34.   }
  35.  
  36. Keywords:  buglist5.10
  37. Updated  88/07/21 03:19
  38.